body, html, #root {
  height: 100%;
  margin: 0;
  font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', Arial, sans-serif;
}
.main-layout {
  display: flex;
  height: 100vh;
}
.sidebar {
  width: 60px;
  background: #222;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px;
}
.sidebar-item {
  width: 40px;
  height: 40px;
  margin: 10px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 8px;
}
.sidebar-item.active, .sidebar-item:hover {
  background: #4caf50;
}
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.top-bar {
  height: 40px;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  padding: 0 16px;
  border-bottom: 1px solid #eee;
}
.content-body {
  display: flex;
  flex: 1;
}
.chat-list {
  width: 300px;
  border-right: 1px solid #eee;
  background: #fafafa;
  display: flex;
  flex-direction: column;
}
.chat-search {
  margin: 10px;
  padding: 6px;
  border-radius: 4px;
  border: 1px solid #ccc;
}
.chat-sessions {
  flex: 1;
  overflow-y: auto;
}
.chat-session {
  display: flex;
  align-items: center;
  padding: 8px;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
}
.chat-session.active, .chat-session:hover {
  background: #e0f7fa;
}
.avatar {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  margin-right: 10px;
}
.chat-info {
  flex: 1;
}
.chat-name {
  font-weight: bold;
}
.chat-last {
  color: #888;
  font-size: 12px;
}
.chat-time {
  font-size: 12px;
  color: #aaa;
}
.chat-detail {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
}
.messages .message {
  margin-bottom: 12px;
}
.sender {
  font-weight: bold;
}
.content {
  margin: 4px 0;
}
.time {
  color: #aaa;
  font-size: 12px;
}
.modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.modal-content {
  background: #fff;
  padding: 24px;
  border-radius: 8px;
  min-width: 400px;
}
.account-item {
  padding: 8px;
  border-bottom: 1px solid #eee;
  cursor: pointer;
}
.account-item.active {
  background: #e0f7fa;
}
.contact-list {
  width: 100%;
  max-width: 350px;
  background: #fafafa;
  border-right: 1px solid #eee;
  height: 100%;
  overflow-y: auto;
}
.contact-item {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
}
.contact-item:hover {
  background: #e0f7fa;
}
.contact-info {
  margin-left: 10px;
}
.contact-name {
  font-weight: bold;
}
.contact-remark {
  color: #888;
  font-size: 12px;
}
.settings-panel {
  padding: 24px;
}
.settings-panel input[type="text"] {
  width: 300px;
  margin-left: 8px;
  margin-bottom: 8px;
}
.settings-panel button {
  margin: 8px 8px 8px 0;
  padding: 4px 12px;
  border-radius: 4px;
  border: 1px solid #4caf50;
  background: #fff;
  color: #4caf50;
  cursor: pointer;
}
.settings-panel button:hover {
  background: #4caf50;
  color: #fff;
}
.tag-green {
  display: inline-block;
  background: #eaffea;
  color: #4caf50;
  border-radius: 4px;
  padding: 2px 8px;
  margin-left: 4px;
  font-size: 14px;
}
.btn-green {
  margin-left: 8px;
  background: #eaffea;
  color: #4caf50;
  border: 1px solid #4caf50;
  border-radius: 4px;
  padding: 2px 10px;
  cursor: pointer;
}
.btn-green:hover {
  background: #4caf50;
  color: #fff;
}
.btn-blue {
  background: #2196f3;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 6px 18px;
  font-size: 16px;
  margin-top: 16px;
  cursor: pointer;
}
.btn-blue:hover {
  background: #1976d2;
} 